﻿using StudentManager.Data.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StudentManager.Data.IDAL
{
   
    public interface IZbtUserInfoDAL
    {
        Task<ZbUserInfo> GetByIdAsync(int id);
        Task<int> AddAsync(ZbUserInfo user);
        Task<bool> UpdateAsync(ZbUserInfo user);
        Task<bool> DeleteAsync(int id);
        Task<(IEnumerable<ZbUserInfo> Users, int TotalCount)> GetPagedListAsync(int pageIndex, int pageSize, string searchKey = "");
    }

}